package oo;

public class Fishandlake {
	public static void main(String[] args) {
		Fish niqiu = new Fish();
		System.out.println(niqiu.weight);
		Lake taihu  = new Lake();
		Lake xihu = new Lake();
		Lake tianchi = new Lake();
		taihu.setFish(niqiu);
		taihu.eat(15);
		xihu.setFish(niqiu);		
		tianchi.setFish(niqiu);		
		System.out.println(taihu.fish.weight);
		System.out.println(xihu.fish.weight);
		System.out.println(tianchi.fish.weight);
		xihu.eat(20);
		System.out.println(taihu.fish.weight);
		System.out.println(xihu.fish.weight);
		System.out.println(tianchi.fish.weight);
		tianchi.eat(25);
		System.out.println(taihu.fish.weight);
		System.out.println(xihu.fish.weight);
		System.out.println(tianchi.fish.weight);
	}

}
